import { Link, useLocation } from 'react-router-dom'
import './App.css';
import DocumentTitle from 'react-document-title';


export default function NoMatch() {
    let loc = useLocation();
    return (
        <DocumentTitle title="404 | RayChess">
            <>
                <h1>
                    404 Not Found
                </h1>
                <p>
                    Wrong URL:&nbsp;&nbsp;<code>{loc.pathname}</code>
                </p>
                <Link to='/'>Back To HomePage</Link>
            </>
        </DocumentTitle>);
}